// permission.ts
import router from "@/router/index.ts";

// 全局前置守卫
router.beforeEach(async (to, from) => {
    console.log(to, from)
});

// 全局后置钩子
router.afterEach((to, from) => {
    // finish progress bar
    console.log(to, from)
});
